package com.ocom.webapi.service.impl;

import com.ocom.common.resp.Result;
import com.ocom.webapi.feign.MinioClientService;
import com.ocom.webapi.service.MinioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class MinioServiceImpl implements MinioService {


    @Autowired
    private MinioClientService minioClientService;
    /**
     * 文件上传（UpgradePage/importUpgrade）
     * */
    @Override
    public Result FileLoad(MultipartFile file) {
        return minioClientService.upload(file);
    }
}
